﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TinyERP.ERP.Entity
{
    [NHibernate.Mapping.Attributes.Class(Table = "IMContact", NameType = typeof(IMContact))]
    public class IMContact
    {
        [NHibernate.Mapping.Attributes.Id(0, TypeType = typeof(long), Column = "ID", Name = "ID")]
        [NHibernate.Mapping.Attributes.Generator(1, Class = "native")]
        public virtual long ID { get; set; }

        [NHibernate.Mapping.Attributes.Property(Column = "Account")]
        public virtual string Account { get; set; }

        [NHibernate.Mapping.Attributes.Property(Column = "IsPrimaryAccount")]
        public virtual bool IsPrimaryAccount { get; set; }

        [NHibernate.Mapping.Attributes.Property(Column = "OnlineService")]
        public virtual string OnlineService { get; set; }
       
        [NHibernate.Mapping.Attributes.ManyToOne(Column = "ContactID", ClassType = typeof(Contact))]
        public virtual Contact Contact { get; set; }
    }
}
